from django.db import models

# Create your models here.

# class Cate(models.Model):
#     """
#     分类
#     """
#     cate_name = models.CharField(max_length=30)
#
#     class Meta:
#         db_table = 'cate'


# class Goods(models.Model):
#     """
#     商品表
#     """
#     goods_name= models.CharField(max_length=50)
#     goods_price = models.DecimalField(max_digits=7,decimal_places=2)
#     goods_img = models.ImageField(upload_to='img')
#     cate = models.ForeignKey(Cate,on_delete=models.CASCADE)
#
#     class Meta:
#         db_table = 'goods'

class User(models.Model):
    user_name = models.CharField(max_length=50)
    user_password = models.CharField(max_length=50)

class Ddb(models.Model):
    dj_data = models.CharField(max_length=255)
    dj_hao = models.CharField(max_length=255)
    shr = models.CharField(max_length=255)
    price = models.CharField(max_length=255)
    # good_xq = models.CharField(max_length=255)

class Good(models.Model):
    good_name = models.CharField(max_length=255)
    goods_img = models.ImageField(upload_to='img')
    good_sum = models.CharField(max_length=50)
